Skip to main content
GET
Home > Field "Leaderboard" card (Phase 003 Card 5)

Authorizations

Authorization
string
header
required

Bearer token authentication. Requires a company-admin token whose role holds reports.view. Additionally, the caller's company must have ANALYTICS_DASHBOARD enabled — otherwise every endpoint returns 404.

Query Parameters

country
string

ISO alpha-2 code of one of the requesting company's configured countries (see GET /countries). When present, every service on this endpoint filters its data to that country and reports money in the country's own currency. Omit (or send "all") for the aggregate-across-countries view, which is the default and matches pre-Phase-004 behavior. Unknown ISO codes or ones the company is not configured for return 400.

Example:

"US"

Response

Leaderboard payload

Home > Field "Leaderboard" card (Phase 003 Card 5). Up to 50 reps ranked by current-calendar-month attributed revenue, desc. Each row carries visitors (distinct share.visited sessions), orders (attributed order count), revenue, a 12-point spark, an optional top-asset preview, and a rank-change vs the prior calendar month (null when the rep had zero activity last month — the FE renders that as a "new" badge). Rows are pre-sorted by revenue; the FE applies search / sort / move-type filtering client-side.

reps
object[]
required
Maximum array length: 50
currency
string
required

ISO currency code.

Example:

"USD"

meta
object